API - Authorization namespace

Function Summary
cot_auth_add_itemAdds a new object into access control lists Usage example: $auth_permit = array( COT_GROUP_DEFAULT => 'R', COT_GROUP_GUESTS => '0',, COT_GROUP_MEMBERS => 'R', 12 => 'RW', // allows Read & Write for group with ID = 12 ); $auth_lock = array( COT_GROUP_DEFAULT => 'A', COT_GROUP_GUESTS => 'W12345A', COT_GROUP_MEMBERS => 'A', 12 => 'R', // cannot change Read for group with ID = 12 ); cot_auth_add_item('test', 'item123', $auth_permit, $auth_lock);
cot_auth_clearClears user permissions cache
cot_auth_getlevelReturns highest level of all groups a user belongs to.
cot_auth_getmaskReturns an access character mask for a given access byte
cot_auth_getvalueConverts an access character mask into a permission byte
cot_auth_remove_groupRemoves a user group from auth table
cot_auth_remove_itemRemoves an object from ACL
cot_auth_reorderOptimizes auth table by sorting its rows
Global Summary
cot_auth_default_permitDefault allowed permissions map.